package com.chixing.day04_oop;

/**
 * 构造函数的作用： 初始化对象 initial object
 */
public class CarTest {
    public static void main(String[] args) {
        Car car1 = new Car();
        car1.setCarId(101);
        car1.setCarName("AAA车辆");

        Car car2 = new Car(102,"CCC车辆");

        Car car3 = new Car(103,"DDD车辆","特斯拉","黑色");
    }
}
